import java.util.Scanner;

public class java10 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("成绩");
        int num1 = scanner.nextInt();
        if (num1==100)
        { System.out.println("优");
            return;
        }
        switch (num1 / 10) {
            case 9:
                System.out.println("优");
                break;
            case 8:
                System.out.println("良");
                break;
            case 7:
                System.out.println("及格");
                break;
            default:
                    System.out.println("不及格");
        }
    }
}
